<!DOCTYPE html>

<html xmlns:th="http://www.thymeleaf.org">

<head>
    <title>后台管理系统</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css" integrity="sha384-xOolHFLEh07PJGoPkLv1IbcEPTNtaed2xpHsD9ESMhqIYd0nLMwNLD69Npy4HI+N" crossorigin="anonymous">
    <link rel="stylesheet" href="../../css/adminFragment.css">
</head>

<body>
<div>
    <div  th:insert="adminFragment::fragment-name"></div>
    <div style="height: 200px"></div>
    <div style="width: 1100px;margin: auto;background-color: yellowgreen;padding: 20px">
        <form enctype="multipart/form-data" th:action="@{/admin/adminCsHouse}" method="post">
            <input type="hidden" name="id" th:value="${house.id}">
            <input type="hidden" name="userId" th:value="${house.userId}">
            <div class="form-group row">
                <label for="staticEmail" class="col-sm-2 col-form-label">房源信息</label>
                <div class="col-sm-10">
                    <input type="text" readonly class="form-control-plaintext" id="staticEmail" value="房源信息">
                </div>
            </div>
            <div class="form-group row">
                <label for="homeTitle" class="col-sm-2 col-form-label">房源标题</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" id="homeTitle" name="homeTitle" th:value="${house.homeTitle}">
                </div>
            </div>
            <div class="form-group row">
                <label for="homeType" class="col-sm-2 col-form-label">房屋类型(几室几厅)</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" id="homeType" name="homeType" th:value="${house.homeType}">
                </div>
            </div>
            <div class="form-group row">
                <label for="homeSize" class="col-sm-2 col-form-label">房屋面积</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" id="homeSize" name="homeSize"  th:value="${house.homeSize}">
                </div>
            </div>
            <div class="form-group row">
                <label for="floor" class="col-sm-2 col-form-label">房屋楼层</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" id="floor" name="floor"  th:value="${house.floor}">
                </div>
            </div>
            <div class="form-group row">
                <label for="rentType" class="col-sm-2 col-form-label">出租方式</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" id="rentType" name="rentType" th:value="${house.rentType}">
                </div>
            </div>
            <div class="form-group row">
                <label for="address" class="col-sm-2 col-form-label">地址</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" id="address" name="address" th:value="${house.address}">
                </div>
            </div>
            <div class="form-group row">
                <label for="cellName" class="col-sm-2 col-form-label">小区名字</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" id="cellName"name="cellName" th:value="${house.cellName}">
                </div>
            </div>
            <div class="form-group row">
                <label for="price" class="col-sm-2 col-form-label">房屋价格</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" id="price" name="price"  th:value="${house.price}">
                </div>
            </div>
            <div class="form-group row">
                <label for="telephone" class="col-sm-2 col-form-label">联系电话</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" id="telephone" name="telephone" th:value="${house.telephone}">
                </div>
            </div>
            <div class="form-group row">
                <label for="houseOrientation" class="col-sm-2 col-form-label">房屋朝向</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" id="houseOrientation" name="houseOrientation" th:value="${house.houseOrientation}">
                </div>
            </div>
            <div class="form-group row">
                <label for="img" class="col-sm-2 col-form-label">修改图片</label>
                <div class="col-sm-10">
                    <input type="file" class="form-control" id="img" name="file">
                    <input type="hidden" name="img" th:value="${house.Img}">
                    <input type="hidden" name="publisher" th:value="${house.publisher}">
                </div>
            </div>
            <div class="form-group row">
                <label for="img" class="col-sm-2 col-form-label">提交</label>
                <div class="col-sm-10">
                    <input type="submit"  class="btn btn-info">
                </div>
            </div>
            <div class="form-group row">
                <label for="img" class="col-sm-2 col-form-label">删除</label>
                <div class="col-sm-10">
                    <a th:href="'admin/adminDelHouse/'+${id}"  class="btn btn-info">删除</a>
                </div>
            </div>

        </form>
    </div>
</div>

<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.min.js" integrity="sha384-+sLIOodYLS7CIrQpBjl+C7nPvqq+FbNUBDunl/OZv93DB7Ln/533i8e/mZXLi/P+" crossorigin="anonymous"></script>
</body>

</html>